package cn.pupil.design;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description: 教师
 * @Author: pupil
 * @Date: 2024/06/24 下午 1:14
 */
public class Teacher {

    private String name;    // 学生姓名
    private String clazz;   // 班级
    private static List<Student> students;  // 学生

    public Teacher() {
    }

    public Teacher(String name, String clazz) {
        this.name = name;
        this.clazz = clazz;
    }

    static {
        students = new ArrayList<>();
        students.add(new Student("王五", 10, 589));
        students.add(new Student("李四", 100, 256));
        students.add(new Student("小三", 23, 449));
        students.add(new Student("皮皮", 2, 665));
        students.add(new Student("蛋蛋", 15, 532));
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getClazz() {
        return clazz;
    }

    public void setClazz(String clazz) {
        this.clazz = clazz;
    }

    public static List<Student> getStudents() {
        return students;
    }

    public static void setStudents(List<Student> students) {
        Teacher.students = students;
    }
}
